using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

[Serializable]
public class ImageFontComponent
{
    public List<Sprite> ImageFontSprites = new List<Sprite>();

    public void SetImageFont(int index, Image image)
    {
        Sprite FontSprite = ImageFontSprites[index];
        image.sprite = FontSprite;
        image.rectTransform.sizeDelta = new Vector2(FontSprite.texture.width, FontSprite.texture.height);
    }
}
